package com.qianfeng.openapi.web.master.mapper;

import com.qianfeng.openapi.web.master.pojo.UserToken;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author LJF
 * @Date 2020/7/3 11:07
 * @Version 1.0
 */
@Repository
public interface UserTokenMapper {
    int insertUserToken(UserToken userToken);

    int updateUserToken(UserToken userToken);

    int deleteUserToken(Integer id);

    UserToken getUserTokenById(Integer id);

    List<UserToken> getAllUserTokens();


    void deleteUserTokens(Integer[] ids);

    List<UserToken> selectUserTokenByCondition(@Param("appId") Integer appId, @Param("userId") Integer userId,@Param("access_token") String access_token);


}
